<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 50px;
            border: 1px solid #369;
            /* 保留空白和换行符 */
            /* white-space: pre-wrap; */
            /* 保留空白合并换行符 */
            /* white-space: pre-line; */
            /* 不换行 */
            white-space: nowrap;
            /* 文本隐藏 */
            overflow: hidden;
            /* 文本省略 */
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
    <div>aghuihruoghfduhvuhbvdfohvosvsvcdcdsdsvdvgu</div>
</body>
</html>